package
{
	import flash.display.Sprite;
	import flash.events.TimerEvent;
	import flash.utils.Timer;
	
	public class HelloWorld extends Sprite
	{
		private var counter:Number = 0;
		public function HelloWorld()
		{
			var timer:Timer = new Timer(1000,0);
			timer.addEventListener(TimerEvent.TIMER,onTime);
			timer.start();
		}
		private function onTime(event:TimerEvent):void{
			counter++;			
			trace('Hello',counter);
		}
	}
}